<style>
    .pagination{
        padding-left: 0;
        margin: 2px 0;
        border-radius: 4px;
    }
    td, tr,th{text-align: center;}
</style>
<div class="page-content">
    <div class="col-sm-6 pull-right">
        <span class="btn btn-sm btn-primary pull-right" onclick="javascript:window.location.href = 'info'">
            添加
            <i class="icon-reply icon-only"></i>
        </span>
    </div>
    <div class="page-header">
        <h1>
            {:model('menu')->getName()} {gt name="$Request.get.group_id" value="0"} [{:model('AdminGroup')->getGroupName($Request.get.group_id)}]{/gt}
        </h1>
    </div><!-- /.page-header -->

    <form class="form-horizontal" role="form" action="{:url('index')}" method="post" name="myfrom">
        <div  class="form-group" >
            <label class="control-label pull-left" style="margin-left: 20px;">公司名称：</label>
            <div >
                <input type="text" class="col-xs-5 col-sm-2" value="{$name}" name="name">
            </div>
            <span class="btn btn-sm btn-primary pull-left" style="margin-left: 10px;" onclick="myfrom.submit()">
            搜素
            <i class="icon-reply icon-only"></i>
        </span>
        </div>

    </form>

    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->
            <div class="row">

                <div class="col-xs-12">

                    <table id="simple-table" class="table  table-bordered table-hover" style="vertical-align:middle;">
                        <thead>
                            <tr>

                                <th class="detail-col">ID</th>
                                <th>证券名称</th>
                                <th>证券编号</th>
                                <th style="text-align:center;">公司名称</th>
                                <th>机构行业</th>
                                <th>所在地区</th>
                                <th>更新时间</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            {volist name="lists" id="vo"}
                            <tr>

                                <td style="width: 2%;text-align:center; vertical-align:middle;">{$vo.sid}</td>
                                <td style="width: 4.5%;text-align:center; vertical-align:middle;">{$vo.stock_name}</td>
                                <td style="width: 4.5%;text-align:center; vertical-align:middle;">{$vo.stock_code}</td>
                                <td style="width: 16%; vertical-align:middle;text-align:left;">{$vo.institutions_name}</td>
                                <td style="width: 4.5%; vertical-align:middle;">{$vo.institutions_industry}</td>
                                <td style="width: 4.5%; text-align:center; vertical-align:middle;">{$vo.region}</td>
                                <td style="width: 9%; text-align:center; vertical-align:middle;">{$vo.updated_at}</td>
                                <td style="text-align:center;vertical-align:middle;">
                                    <a href='{:url("/admin/Valuation/del","sid=$vo[sid]&stock_code=$vo[stock_code]&status=8")}'>
                                        <span class="btn btn-xs btn-info" style="background-color:#000000;">
                                            评估
                                            <i class="icon-reply icon-only"></i>
                                         </span>
                                    </a>
                                    <a href='{:url("/admin/chip/del","sid=$vo[sid]&stock_code=$vo[stock_code]&status=9")}'>
                                        <span class="btn btn-xs btn-info" style="background-color:#000000;">
                                            筹码
                                            <i class="icon-reply icon-only"></i>
                                         </span>
                                    </a>
                                    <a href='{:url("detail","sid=$vo[sid]&stock_code=$vo[stock_code]")}'>
                                        <span class="btn btn-xs btn-info">
                                             详情
                                            <i class="icon-reply icon-only"></i>
                                        </span>
                                    </a>
                                    <a href='{:url("/admin/Standby/del","sid=$vo[sid]&stock_code=$vo[stock_code]&status=1")}'>
                                        <span class="btn btn-xs btn-info">
                                            待机
                                            <i class="icon-reply icon-only"></i>
                                         </span>
                                    </a>
                                    <a href='{:url("/admin/Roetwenty/del","sid=$vo[sid]&stock_code=$vo[stock_code]&status=2")}'>
                                        <span class="btn btn-xs btn-info">
                                            观研(20)
                                            <i class="icon-reply icon-only"></i>
                                         </span>
                                    </a>
                                    <a href='{:url("/admin/Roe/del","sid=$vo[sid]&stock_code=$vo[stock_code]&status=3")}'>
                                        <span class="btn btn-xs btn-info">
                                            观研
                                            <i class="icon-reply icon-only"></i>
                                         </span>
                                    </a>
                                    <a href='{:url("/admin/warehouse/del","sid=$vo[sid]&stock_code=$vo[stock_code]&status=4")}'>
                                        <span class="btn btn-xs btn-info">
                                            仓库
                                            <i class="icon-reply icon-only"></i>
                                         </span>
                                    </a>
                                    <a href='{:url("/admin/Business/del","sid=$vo[sid]&stock_code=$vo[stock_code]&status=5")}'>
                                        <span class="btn btn-xs btn-info">
                                            行业
                                            <i class="icon-reply icon-only"></i>
                                         </span>
                                    </a>
                                    <a href='{:url("/admin/Standby/del","sid=$vo[sid]&stock_code=$vo[stock_code]&status=6")}'>
                                        <span class="btn btn-xs btn-info">
                                            稳息
                                            <i class="icon-reply icon-only"></i>
                                         </span>
                                    </a>
                                    <a href='{:url("/admin/Ingredient/del","sid=$vo[sid]&stock_code=$vo[stock_code]&status=7")}'>
                                        <span class="btn btn-xs btn-info">
                                            成分股
                                            <i class="icon-reply icon-only"></i>
                                         </span>
                                    </a>
                                    <a href='javascript:void(0)' onclick="return alert_del('{:url(\"del\",\"sid=$vo[sid]&stock_code=$vo[stock_code]\")}', '确认要删除这条记录吗？删除集团将同时删除下面的所有用户');"
                                        <span class="btn btn-xs btn-danger">
                                            删除
                                            <i class="icon-reply icon-only"></i>
                                        </span>
                                    </a>

                                    <a href='{:url("/admin/Securities/editp","sid=$vo[sid]&stock_code=$vo[stock_code]")}'>
                                        <span class="btn btn-xs btn-info">
                                            编辑
                                            <i class="icon-reply icon-only"></i>
                                         </span>
                                    </a>
                                    <a href='{:url("/admin/securities/add","sid=$vo[sid]&stock_code=$vo[stock_code]&jys=$vo[jys]")}'>
                                        <span class="btn btn-xs btn-info" style="background-color:#000000;">
                                            更新
                                            <i class="icon-reply icon-only"></i>
                                         </span>
                                    </a>
                                </td>
                            </tr>
                            {/volist}    
                        </tbody>
                    </table>
                </div><!-- /.span -->
            </div><!-- /.row -->
            {$lists->render()}
            <!-- PAGE CONTENT ENDS -->
        </div><!-- /.col -->
    </div><!-- /.row -->
</div><!-- /.page-content -->




